﻿@model IEnumerable<Tecnosop.Dominio.GUIA_DE_DESPACHO>
@using Tecnosop.Dominio
@section css {
    <style type="text/css">
        .data-header, .data-row
        {
            width: 100%;
            margin: 0;
            padding: 0;
        }
        .data-header td, .data-row td
        {
            width: 33%;
            border: 0;
            padding-top: 0px;
            padding-bottom: 0px;
            vertical-align: middle;
            text-align: center;
        }
    </style>
}

@{
    ViewBag.Title = "´Vista todas las guías de despacho";
}
  
<fieldset>
<legend>Guías de despacho</legend>
<br />
@(Html.Telerik().Grid(Model)
        .Name("GuiaDespacho")
            .DataKeys(keys => keys.Add(k => k.ID_GUIA_DE_DESPACHO))
            .DataBinding(dataBinding => dataBinding.Server()
              .Delete(MVC.NotaDebito.Delete().GetRouteValueDictionary()))
               .Columns(columuns =>
            {
                columuns.Bound(c=>c.ID_GUIA_DE_DESPACHO)
             .Template(t => Html.ActionLink(t.ID_GUIA_DE_DESPACHO.ToString(), MVC.GuiaDespacho.Details(t.ID_GUIA_DE_DESPACHO, t.RAZONSOCIALGUIA)));
                columuns.Bound(c => c.RAZONSOCIALGUIA);
                columuns.Bound(c=>c.NUMERO_FACTURA);    
                columuns.Bound(c=>c.RAZON_SOCIAL);
                columuns.Bound(c => c.FECHA_INSTALACION);
                columuns.Bound(c => c.DIRECCION_DE_DESPACHO);
                columuns.Bound(c => c.VISIBLE);                             
            })
            .Selectable()
            //.ClientEvents(events => events.OnRowSelect("onRowSelect"))
            .Pageable(paging => paging.PageSize(20))
            .Scrollable(scrolling => scrolling.Enabled(false))
            .PrefixUrlParameters(false)
            .Sortable()
            .Filterable()
                )

                  <br />           

</fieldset>
  